#ifndef SLEEWORDDOC_H
#define SLEEWORDDOC_H
#include "sleeofficeglobal.h"
#include "sleeqaxptr.h"

class SLEEOFFICESHARED_EXPORT SleeWordDoc
{
    SleeQAxPtr m_doc;
    quint32 m_id;
public:
    SleeWordDoc(const SleeQAxPtr &_doc, quint32 id);
    inline quint32 get_id() {return m_id;}
    void close(bool do_save = false);
    void save();
    void save_as(const QString &file_pathname);

    bool replace(const QString & qstr_target, const QString & qstr_new);
};

#endif // SLEEWORDDOC_H
